home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / basic / UDP_Chat.lha / UDPChat / net_protocol_header.bb2 < prev    next >
Encoding:
Text File  |  1998-02-09  |  2.0 KB  |  1 lines

  1. ;;   Network Protocol Includes V 0.2  24/1/98;      by  Anton ReinauerNET_PROTOCOL_VERSION.s=܆(1)                   ; Net protocol version 0.1#NET_PROTOCOL_VERSION=$01; Control Packet Constants  (2 bytes with first byte=1)CONTROL_PACKET.s=܆($1)              ; Byte header for Control Packet#CONTROL_PACKET=$1              ; Byte header for Control PacketCP_REQ_CONNECT.s=CONTROL_PACKET.s + Ü†($1)   ; Connection request#CP_REQ_CONNECT=$1CP_REP_ACCEPT.s=CONTROL_PACKET.s + Ü†($81)    ; Connection accepted#CP_REP_ACCEPT=$81CP_REP_REJECT.s=CONTROL_PACKET.s + Ü†($82)    ; Server refuses connection#CP_REP_REJECT=$82CP_REQ_SERVER_INFO.s=CONTROL_PACKET.s + Ü†($2) ; Client requests info from Server#CP_REQ_SERVER_INFO= $2CP_SERVER_INFO.s=CONTROL_PACKET.s + Ü†($83)   ; Info from Server#CP_SERVER_INFO=$83CP_REQ_PLAYER_INFO.s=CONTROL_PACKET.s + Ü†($3) ; Request info on a player from Server#CP_REQ_PLAYER_INFO=$3CP_REP_PLAYER_INFO.s=CONTROL_PACKET.s + Ü†($84) ; Player info reply from server#CP_REP_PLAYER_INFO=$84CP_REQ_ENVIRONMENT_INFO.s=CONTROL_PACKET.s + Ü†($4) ; Request game environment details#CP_REQ_ENVIRONMENT_INFO=$4CP_REP_ENVIRONMENT_INFO.s=CONTROL_PACKET.s + Ü†($85) ; Game environment details from Server#CP_REP_ENVIRONMENT_INFO=$85; Game Packet Constants  (1 byte from 2 onwards, then a 4 byte packet number;                         and then data depending on game packet type).#REL_STRING_MESSAGE=$02   ; Communication string from one player to anotherREL_STRING_MESSAGE.s=܆($2)  ; - only used if message >1024 bytes#REL_STRING_END=$03       ; End of communication string, and used if messageREL_STRING_END.s=܆($3) ; is <=1024 bytes#REL_PACKET_ACK=$04       ; Acknowledgement that a packet (of packet number)REL_PACKET_ACK.s=܆($4) ; has been received#PING_REQUEST=$05         ; Send a Ping Request to Server/another player#PING_RESPONSE=$06        ; Response to a Ping request to Server/another player                        ; of Ping Request (of Packet number)#UNRELIABLE_PACKET=$07  ; Unreliable string message- can't be >1024 bytes